package com.xjh.basestudy.designmode.createMode.createMode4_AbstractFactory;

/**
 * @author XuJianHua
 * @date 2022-09-23 13:51:48
 * @description 人类初级兵种-海军陆战队
 */
public class Marine extends LowClassUnit {

    public Marine(int x, int y) {
        super(x, y);
    }

    @Override
    public void show() {
        System.out.println("士兵出现在坐标：[" + x + "," + y + "]");
    }

    @Override
    public void attack() {
        System.out.println("士兵用机关枪射击，攻击力：" + attack);
    }

}